home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / NeXTmj / Source / GameTileArray.h < prev    next >
C/C++ Source or Header  |  1991-03-08  |  578b  |  34 lines

  1.  
  2. /*
  3.  * This object provides an array of Game Tile objects.
  4.  *    In the application there is only one object of this class.
  5.  *
  6.  $Author$
  7.  $Header$
  8.  *
  9.  $Log$
  10.  */
  11.  
  12.  
  13. #import    "mj.h"
  14. #import    "GameTile.h"
  15.  
  16.  
  17. class GameTileArray {
  18. private:
  19.     GameTile*    game_tiles[ NUMBER_OF_TILES ];
  20.  
  21. public:
  22.     GameTileArray( void );
  23.     ~GameTileArray( void );    
  24.  
  25.                                                 // Index into the array to an
  26.                                                 //    element.
  27.     GameTile&    operator[]( int );
  28.                                                 // Swap two elements in the array.
  29.     void        swap( int, int );        
  30.                                                 // How many elements are in the array?
  31.     int            size( void );    
  32. };
  33.  
  34.